<crm-main-nav  nav-c="proportion" page-title="导入比例设置"></crm-main-nav>
<!-- 面包屑 -->
<div class="container">
<ol class="breadcrumb">
    <li>CRM系统</li>
    <li>录入客户</li>
    <li class="active">录入比例设置</li>
</ol>
</div>
<!-- 内容 -->
<div class="container">
<!-- 筛选商机 -->
<crm-panel title="导入比例设置">
  <div ng-controller="clientProportionController">
    <form class="form-horizontal" ng-submit="proportionSearch()" role="form" >
      <div class="form-group">
        <label class="col-sm-1 control-label">分公司：</label>
        <div class="col-sm-2">
          <company-select current-id="company"></company-select>
        </div>
        <div class="col-sm-1">
          <button type="submit" class="btn btn-primary">确定</button>
        </div>
      </div>
    </form>
    <div class="alert alert-warning" role="alert">
    提示：设置时，请确保每个分公司各销售人员所占比例的总和等于100%
    </div>
    <form ng-submit="editProportion()">
      <table class="table table-bordered">
        <thead>
          <tr>
            <th>姓名</th>
            <th>职位</th>
            <th width="30%">所占比例(%)客户姓名</th>
          </tr>
        </thead>
        <tbody>
          <tr ng-repeat="v in userList track by $index">
            <td>{{v.name}}</td>
            <td>{{v.position}}</td>
            <td>
              <input type="text" class="form-control"  ng-model="v.input_proportion">
            </td>
          </tr>
        </tbody>
      </table>
      <div class="submit-box">
        <button type="submit" class="btn btn-primary">提交</button>
      </div>
    </form>
  </div>
</crm-panel>